package com.sl.au.entity;
/***********************************************************************
 * Module:  KeyContact.java
 * Author:  sinser张
 * Purpose: Defines the Class KeyContact
 ***********************************************************************/

import javax.persistence.*;

/**
 * 客户关键联系人
 * 
 **/
@Entity
@Table(name = "sl_crm_keyContact")
public class KeyContact extends Root {

	/** 联系人名称 */
	@Column(name = "sName", nullable = false)
	private String name;
	
	 /** 称呼 */
	 @Column(name = "sCalledName")
	 private String calledName;

	/** 联系方式 */
	@Column(name = "sContactType")
	private String contractType;

	/** 职务 */
	@Column(name = "sPosition")
	private String position;


	/** 爱好 */
	@Column(name = "sHobby")
	private String hobby;

	/** 专业 */
	@Column(name = "sMajor")
	private String major;

	/** 管理范围 */
	@Column(name = "sDomain")
	private String domain;
	
	/** 备注 */
	@Column(name = "sMemo")
	private String memo;

	@ManyToOne
    @JoinColumn(name="customer_id")//加入一列作为外键
    private Customer customer;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCalledName() {
		return calledName;
	}

	public void setCalledName(String calledName) {
		this.calledName = calledName;
	}

	public String getContractType() {
		return contractType;
	}

	public void setContractType(String contractType) {
		this.contractType = contractType;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}

	public String getHobby() {
		return hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
		
	

}